package com.xinke.module.system.model.vo.oauth2;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - OAuth2 批准 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OAuth2ApproveRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22390")
    @ExcelProperty("编号")
    private Long approveId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23945")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户端编号")
    private String clientNo;

    @Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("授权范围")
    private String authScope;

    @Schema(description = "是否接受", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否接受")
    private Integer approved;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("过期时间")
    private LocalDateTime expiresTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}